//
//  IMTool.h
//  IMChezhil
//
//  Created by zhangliucheng on 15/7/8.
//  Copyright (c) 2015年 CheZhil. All rights reserved.
//

#import <Foundation/Foundation.h>

@class IMImageMessage;
@class IMAudioMessage;

@interface IMTool : NSObject

/**
 *  生成不唯一不重复的Id
 *
 *  @return messageId
 */
+ (NSString *)productMessageId;


/**
 *  获取发送的NSData.
 *
 *  @param code    遇服务器预定好的code.
 *  @param content 需要发送的内容.
 *
 *  @return 需要发送的NSData.
 */
+ (NSData *)sendDataWithCode:(NSInteger)code content:(NSString *)content;

/**
 *  上传图片.
 *
 *  @param imageMessage IMImageMessage
 */
+ (void)uploadImage:(IMImageMessage *)imageMessage;

/**
 *  上传语音文件.
 *
 *  @param audioMessage IMAudioMessage
 */
+ (void)uploadAudio:(IMAudioMessage *)audioMessage;

@end
